// Thor - High Performance C++ containers and algorithm library.
//
// Copyright (c) 2010 Su Shi. All rights reserved.
//
// Author: Su Shi <carmack.shi [at] gmail.com>


// GTest
#include <gtest/gtest.h>

#include <thor_string_utils.h>
using ::thor::FindShortestDigest;
using ::thor::String;

TEST(StringSearch, FindDigest) {

  String content = "abbcabc";
  String digest = FindShortestDigest(content);

  EXPECT_EQ("bca", digest);
}